'use strict'
import { el_import } from '@/router/lazyRouter'
import Layout from '@/layout/index.vue'
import ChildrenLayout from '@/layout/ChildrenLayout.vue'
export const adminDataRouters = [
  {
    path: '/setting/role/admin',
    meta: { title: '信息汇总', icon: 'el-icon-menu' },
    component: el_import('home/index')
  },
  {
    path: '',
    meta: { title: '首页面板', icon: 'el-icon-menu' },
    component: Layout,
    children: [
      {
        path: '/home',
        meta: { title: '自动表格', icon: 'el-icon-menu' },
        component: el_import('home/index')
      }
    ]
  },
  {
    path: '/setting',
    meta: { title: '系统管理', icon: 'el-icon-menu' },
    component: Layout,
    children: [
      {
        path: '/setting/user',
        meta: { title: '用户管理', icon: 'el-icon-menu' },
        component: el_import('home/index')
      }, {
        path: '/setting/role',
        meta: { title: '角色管理', icon: 'el-icon-menu' },
        component: ChildrenLayout,
        children: [
          {
            path: '/setting/role/root',
            meta: { title: '系统用户', icon: 'el-icon-menu' },
            component: el_import('home/index')
          }, {
            path: '/setting/role/admin',
            meta: { title: '管理员', icon: 'el-icon-menu' },
            component: el_import('home/index')
          }
        ]
      }
    ]
  }
]
